<?php


namespace App\store\controllers\writeoff;


use App\store\controllers\StoreBaseControllers;
use Illuminate\Http\Request;

class WriteOffController extends StoreBaseControllers
{

    /**
     * 核销码核销
     */
    public function writeoffCode(Request $request)
    {

        $list = self::getStoreData('Writeoff','writeoffCode');

        return successJson('操作成功!', $list);
    }

    /**
     * 核销人
     */
    public function getWriteoffPeopleList(Request $request)
    {

        $list = self::getStoreData('Writeoff','getWriteoffPeopleList');

        return successJson('获取成功!', $list);
    }

    /**
     * 核销人权限开关
     */
    public function writeoffPeopleIsAuth(Request $request)
    {

        $list = self::getStoreData('Writeoff','writeoffPeopleIsAuth');

        return successJson('操作成功!', $list);
    }

    /**
     * 添加核销人
     */
    public function addWriteoffPeople(Request $request)
    {

        $list = self::getStoreData('Writeoff','addWriteoffPeople');

        return successJson('操作成功!', $list);
    }

    /**
     * 使用手机号查询用户
     */
    public function getWriteoffUserList(Request $request)
    {

        $list = self::getStoreData('Writeoff','getWriteoffUserList');

        return successJson('获取成功!', $list);
    }

}
